// components/ImgUpload/ImgUpload.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
	src:{
		type: String,
		value:""
	},
	ChooseImgArr: {
		type: Array
	}
	
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
	handleRemove(e){
		const {src,ChooseImgArr} = this.data;
		let index = ChooseImgArr.findIndex(v => v === src);
		this.triggerEvent("removeIndex",{index: index});
	}
  }
})
